package com.example.moshudriver.utils;

import com.example.moshudriver.protocol.ENUM_ORDER_STATUS;


public class StringUtils
{
    public static String getOrderStatusName(int status)
    {
        if(status == ENUM_ORDER_STATUS.OS_PUBLISHED.value())
        {
            return "客户发单";
        }
        else if(status == ENUM_ORDER_STATUS.OS_KNOCK_DOWN.value()) 
        {
        	return "已确认接单";
        }
        else if(status == ENUM_ORDER_STATUS.OS_WORK_DONE.value())
        {
            return "工作完成";
        }
        else if(status == ENUM_ORDER_STATUS.OS_PAYED.value())
        {
            return "已付款";
        }
        else if(status == ENUM_ORDER_STATUS.OS_PAY_CONFORMED.value())
        {
            return "付款已确认";
        }
        else if(status == ENUM_ORDER_STATUS.OS_EMPLOYEE_COMMENTED.value())
        {
            return "司机已评";
        }
        else if(status == ENUM_ORDER_STATUS.OS_EMPLOYER_COMMENTED.value())
        {
            return "乘客已评";
        }
        else if(status == ENUM_ORDER_STATUS.OS_FINISHED.value())
        {
            return "订单结束";
        }
        
        else if(status == ENUM_ORDER_STATUS.OS_ABOARD.value())
        {
            return "乘客已上车";
        }
        else if(status == ENUM_ORDER_STATUS.OS_CANCELED.value())
        {
            return "订单取消";
        }

        return "未知状态";

    }
}
